﻿@using CGT.Infrastructure.Entity
@using OF.Utility
@model  List<GovUser>

<div class="box-body table-responsive no-padding">
    <table class="table table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    用户名
                </th>
                <th>
                    姓名
                </th>
                <th>
                    身份证明号码
                </th>
                <th>
                    是否为警员
                </th>
                <th>
                    警员/员工编号
                </th>
                <th>
                    状态
                </th>
                <th>
                    可登录时间段
                </th>
                <th>
                    最后登录时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody id="dataView" data-count="@ViewBag.OutCount">
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.UserName</td>
                    <td> @item.RealName</td>
                    <td> @item.IdentityCode</td>
                    @if (item.IsPolice.ToString() == "1")
                    {
                        <td>是</td>
                    }
                    else
                    {
                        <td>否</td>
                    }
                    <td> @item.UserNumber</td>
                    @if (item.State.ToString() == "1")
                    {
                        <td>启用</td>
                    }
                    else
                    {
                        <td>停用</td>
                    }
                    <td>@item.LoginStartTime 时 - @item.LoginEndTime 时</td>
                    <td>@item.LastLoginTime.ToString("yyyy-MM-dd")</td>
                    <td class="t_c">
                        <button type="button" class="btn btn-danger btn-xs" onclick="active('@item.UserID')">解锁激活</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}





